{#include file="top.php"#}
			<div class="body">
				<div class="main">
					<div class="contactus_box b_box">
						<div class="hd">
							<h2 class="hd_title">關於我們</h2>
						</div>
						<div class="data blackBox">
                    <i class="i3"></i>
					
					<form id="register_form" enctype="multipart/form-data" action="help.php?action=send" method="POST">
					
                    <dl>
                    <dt class="dt_2">Please choose</dt>
                    <dd class="dd_2">
                    	<label><input id="send_mail_address" type="radio" value="General Enquiries" checked="" class="radio" name="reg_p[send_mail_address]">

                            General Enquiries&nbsp;&nbsp;
                        </label>
                        <label><input type="radio" value="Co-Operation" class="radio" name="reg_p[send_mail_address]">
                        	Co-Operation&nbsp;&nbsp;
                        </label>
                        <label><input type="radio" value="Sales" class="radio" name="reg_p[send_mail_address]">
                        	Sales&nbsp;&nbsp;

                        </label>
                        <span  class="failure"></span>
                    </dd>
					</dl>
					<dl>
                    <dt>Subject：</dt>
                    <dd><input type="text" maxlength="50" id="subject" class="ipt" name="reg_p[subject]"><span id="subject_err" class="failure">請輸入Subject</span></dd>
                    </dl>
					<dl>
					<dt>Message：</dt>
                    <dd><textarea id="message" name="reg_p[message]"></textarea><span id="message_err" class="failure">請輸入主題</span></dd>
                    </dl>
					<dl>
                    <dt>Name：</dt>
                    <dd><input type="text" maxlength="50" id="cname"  name="reg_p[cname]" class="ipt"><span id="cname_err" class="failure">請輸入姓名</span></dd>
                    </dl>
					<dl>
					<dt>Email：</dt>
                    <dd><input type="text" maxlength="50" id="email"  name="reg_p[email]" class="ipt"><span id="email_err" class="failure">請輸入Email地址</span></dd>
                   
					                    </dl>
					<dl>
					<dt>Phone：</dt>
                    <dd><input type="text" maxlength="8" id="phone" class="ipt" name="reg_p[phone]"><span id="phone_err" class="failure">請輸入Phone</span></dd>
                    </dl>
					<dl>
                    <dt>Captcha：</dt>
                    <dd class="dd_2">
					<input type="text"class="ipt" id="captcha" name="captcha">					
					<img src="captcha.php" class="check" id="ck" alt="驗證碼" style="cursor:pointer;" onclick="this.src='captcha.php?t='+Math.random()"/><span class="failure" id="captcha_err" >請輸入驗證碼</span></dd>

					 </dl>
					<dl>
                    <dt>&nbsp;</dt>
                    <dd> <a class="btn_s btn_s_p_submit" href="###" onclick="submit_form();" ><strong>提交</strong></a> </dd>            
                    </dl>
					</form>
                   <i class="i3"></i>
                </div>
					</div>
					
						
						
					</div>
				
<!-- main-->
				<div class="sidebar">
					
					{#show_block('b2',1,'','sidebar_ad')#}
					{#show_block('b1',2,'','sidebar_function')#}
					{#show_block('b3',0,'','sidebar_search')#}
					{#show_block('b13',0,'','sidebar_registation')#}
					{#show_block('b4',0,'','sidebar_workshop')#}
					{#show_block('b9',0,'','sidebar_tutorial b_box')#}
					{#show_block('b5',0,'','sidebar_top3 b_box')#}
					{#show_block('b6',0,'','sidebar_facebook')#}
				</div>
				<!-- sidebar -->

			</div><!--body-->
			<script>
			
function check_cssby(tipmainname){

		var obj =$("#"+tipmainname+"_err");
		if(obj.attr('class')!='failure'){
			return 1;
		}else{
			return 0;
		}
	}
	
	function submit_form(){
		
		var ck = {
									
					'subject'				:["",3],	
					'message'			:["",3],		
					'cname'			:["",3],		
					'email'				:["",3],		
					'phone'				:["",3],
					'captcha'			:["",3],		

				};
		var ck_ok =1; 
		$.each(ck,function(i,n){
			switch(n[1]){
				case 1:
					var o = $('#'+i);
					if(o.val()==0){
						//alert(n[0]);
						ck_ok = 0;
						o.focus();
						$('#'+i+'_err').show();
						return false;
					}
					break;
				case 2:
					if(!check_checkbox(i)){
						//alert(n[0]);
						ck_ok = 0;
						$('[name="'+i+'"]').eq(0).focus();
						console.info(i)
						var l=i.length;
						$('#'+i.substr(0,l-2)+'_err').show();
						return false;
					}
					break;
				case 3:
					var o = $('#'+i);
					if($.trim(o.val()).length==0){
						//alert(n[0]);
						ck_ok = 0;
						o.focus();
						$('#'+i+'_err').show();
						return false;
					}
					break;
			}
		});
		
		if(ck_ok){
			$("#register_form").submit();
		}
	}
			</script>
{#include file="footer.php"#}